<template>
  <div>
    <a v-for="item in list" :key="item.id" @click="download(item.id)">{{
      item.name
    }}</a>
  </div>
</template>
<script>
export default {
  name: "SDownload",
  props: {
    list: {
      type: Array
    }
  },
  methods: {
    download(id) {
      window.open(`/api/${this.$apiUrl}-hzz/file/not-auth/download/${id}`);
    }
  }
};
</script>
